//
//  LocationManager.h
//  Sydney
//
//  Created by 张超 on 2018/4/9.
//  Copyright © 2018年 chinajci. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>

typedef void (^LocationResultBlock)(NSDictionary* info) ;

@protocol LocationManagerDelegate<NSObject>
- (void)successGetLocationWithLng:(float)longitude lat:(float)latitude address:(NSString*)address;
- (void)failGetLocationWithError:(NSError*)error;
@end;

@interface LocationManager : NSObject<CLLocationManagerDelegate> {
    CLLocationManager* manager;
    CLGeocoder* geocoder;
}
+ (instancetype)shareLocationManager;

- (void)startUpdatingLocation:(id) result;
@end
